package game.metalmax.controller
{
	import game.metalmax.module.server.ServerProxy;
	
	import showtime.framework.mvc.interfaces.ICommand;
	import showtime.framework.mvc.interfaces.INotification;
	import showtime.framework.mvc.patterns.command.SimpleCommand;

	/**
	 * @project Client
	 * @date 2011-7-21
	 * @author 绿豆蛙
	 * 
	 */
	public class ShutdownCommand extends SimpleCommand implements ICommand
	{
		public function ShutdownCommand()
		{

		}
		
		override public function execute(notification:INotification):void
		{
			facade.hasProxy(String(ServerProxy))
			{
				ServerProxy(facade.retrieveProxy(String(ServerProxy))).exitGameC2S();
			}
		}
	}
}